package com.example.test.util;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.awt.Point;

public class CaptchaCache {

    private static Map<String, List<Point>> captchaCache = new HashMap<>();

    public static void put(String captchaId, List<Point> correctPoints) {
        captchaCache.put(captchaId, correctPoints);
    }

    public static List<Point> get(String captchaId) {
        return captchaCache.get(captchaId);
    }

    public static String generateCaptchaId() {
        return UUID.randomUUID().toString();
    }
}